'use strict';

const Controller = require('egg').Controller;

class GmkController extends Controller {
  async index() {
    const { ctx } = this;
    await ctx.render('gmk')
    var db = this.app.mongodb;
    var res = await db.collection('gmk').find().toArray();
    await ctx.render('gmk',{res})
  }
}

module.exports = GmkController;